<template>
  <cover-image class="backBtn" @tap='backHome' src="/static/images/kaluolin/global-back.png"></cover-image>
</template>

<script>
  import {
    mapState,
    mapMutations
  } from 'vuex'
  export default {
    data() {
      return {
        ossDomain: uni.ossDomain,
      };
    },
    watch: {
      sysInfo (e) {
        this.init()
      },
    },
    mounted() {
      // this.init()
    },
    methods: {
      init () {
        let {
          screenHeight,
          screenWidth,
          safeArea,
          statusBarHeight
        } = this.sysInfo
        this.pageStyle = {
          width: screenWidth + 'px',
          height: screenHeight + 'px',
        }
      },
      backHome () {
        uni.reLaunch({
          url: '/pages/index/index'
        })
      }
    }
  }
</script>
<style lang="scss" scoped>
  .backBtn{
    width: 35px;
    height: 35px;
    position: fixed;
    top: 38px;
    right: 30px;
  }
</style>